import java.util.Stack;


public class stackDemo {
	public static void main(String[] args) {
		Stack s=new Stack();
		s.push("a");
		s.push("b");
		s.push("c");
		System.out.println(s);
		System.out.println(s.pop());
		System.out.println(s);
		System.out.println(s.peek());
		System.out.println(s.search("a"));
		System.out.println(s.search("z"));
		System.out.println(s.empty());
	}

}
